package manayShape_Polymorphism;
//子类Teacher继承Person
public class Teacher extends Person {
    //Person父类和Teacher子类都有的成员变量address
    //(并且Teacher子类的address变量的值是"AA"，Person父类的address变量的值是null)
    String address="AA";
    String course;

    public void teach() {
        System.out.println("老师在讲课");
    }

    void walk(){
        System.out.println("先迈左脚走路");
    }
}
